package quick.api.app;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.boot.autoconfigure.kafka.KafkaAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration;

import com.ctrip.framework.apollo.spring.boot.ApolloApplicationContextInitializer;

import webdm.business.BusinessApplication;

/**
 * @author fengbingjian
 * @date 2019/1/14 11:31
 */
@SpringBootApplication(exclude = {
        QuartzAutoConfiguration.class,
        DataSourceAutoConfiguration.class,
        DataSourceTransactionManagerAutoConfiguration.class,
        HibernateJpaAutoConfiguration.class,
        KafkaAutoConfiguration.class,
        ApolloApplicationContextInitializer.class})
public class BlogApplication {

    private static Logger logger = LoggerFactory.getLogger(BlogApplication.class);

    public static void main(String[] args) {

        try{
            SpringApplication.run(BusinessApplication.class, args);
        }catch (Throwable e){
            logger.error("BusinessApplication主进程异常退出", e);
        }
    }

}
